﻿ 
@{
    Layout ="~/Areas/Shared/_spEdit.cshtml";
 
}

<style>
    .tab {
        width: 100%;
        margin: 0;
        padding: 0;
   
 
        border-top: 1px  ;
        border-bottom: 1px  ;
        border-left: 1px  ;
        border-right: 1px  ;
        border-collapse: collapse;
    }

           
</style>
<div class="ftitle">服务器参数</div>
 

                <table  class="tab"
                    border="1" width="100%" >
                    <tbody>
                       
                        <tr>
                            <td width="50%" style="height: 24px">
                                &nbsp;<strong>服务器名</strong>：@System.Environment.MachineName
                            </td>
                            <td width="50%" style="height: 24px">
                                &nbsp;<b>服务器端口：</b>@HttpContext.Current.Request.ServerVariables["Server_Port"].ToString() 
                            </td>
                        </tr>
                        <tr>
                            <td width="50%" style="height: 23px">
                                &nbsp;<b>脚本解释引擎：</b>@System.Environment.Version
                            </td>
                            <td width="50%" style="height: 23px">
                                <b>&nbsp;站点物理路径：</b>@HttpContext.Current.Request.PhysicalApplicationPath.ToString() 
                            </td>
                        </tr>
                        <tr>
                            <td width="50%" style="height: 23px">
                                &nbsp;<b>服务器CPU个数：</b>@System.Environment.ProcessorCount 
                            </td>
                            <td width="50%" style="height: 23px">
                                &nbsp;<b>服务器IIS版本：</b>@Request.ServerVariables["SERVER_SOFTWARE"]
                            </td>
                        </tr>
                        <tr>
                            <td width="50%" style="height: 24px">
                                &nbsp;<b>开机运行时长</b>：@(System.Environment.TickCount / 3600000)
                                小时
                            </td>
                            <td width="50%" style="height: 24px">
                                <b>&nbsp;服务器时间：</b>@DateTime.Now.ToString() 
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="height: 24px">
                                &nbsp;<b>服务器操作系统：</b><span>
                                    @System.Environment.OSVersion.ToString()</span>
                            </td>
                        </tr>
          
                    </tbody>
                </table> 

